<%--
  Created by IntelliJ IDEA.
  User: 28064
  Date: 2022/3/19
  Time: 15:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>response</title>
</head>
<body>
<h2>方法一</h2>
<p> hello,<%=request.getParameter("username")%> </p>
<h2>方法二</h2>
<% pageContext.setAttribute("username",request.getParameter("username"),PageContext.REQUEST_SCOPE);%>
<p>hello,<%=pageContext.getAttribute("username",PageContext.REQUEST_SCOPE)%></p>
</body>
</html>
